package umacis.data.elements;

import umacis.core.ActionClassManager;
import umacis.data.Bindings;
import umacis.implementation.ActionHook;
import umacis.implementation.HookManager;

public class Binding {

	private int[] key;
	private Action action;

//	public Binding(int[] key, Action action) {
//		this.key = key;
//		this.action = action;
//		ActionClassManager.getInstance().register(this); 
//	}
	
	public Binding(int[] key, ActionHook actionHook) {
		this.key = key;
		action = new Action();
		action.setActionName(actionHook.getMethodName());
		action.setActionClassIndex(actionHook.getActionClassIndex());
		action.setActionIndex(actionHook.getHookIndex());
		ActionClassManager.getInstance().register(this);
	}
	
	public Action getAction() {
		return action;
	}
	
	

}
